﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Tracker.Domain.DTOs;

namespace Tracker.WCF
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "ITrackerService" in both code and config file together.
    [ServiceContract]
    public interface ITrackerService
    {
        [OperationContract]
        UserDTO Register(UserDTO dto);

        [OperationContract]
        UserDTO Login(UserDTO dto);

        [OperationContract]
        [XmlSerializerFormat]
        void TrackPosition(PositionDTO dto);

        [OperationContract]
        [XmlSerializerFormat]
        List<PositionDTO> GetPositions(int userID);
    }
}
